"""
pandans 基本操作
"""
import pandas as pd
import numpy as np

a = np.arange(0, 12).reshape(3, 4)

print('np a:\n', a)
print('-'*10)

#df = pd.DataFrame(a)
df = pd.DataFrame({'total_bill': [16.99, 10.34, 23.68, 23.68, 24.59],
                   'tip': [1.01, 1.66, 3.50, 3.31, 3.61],
                   'sex': ['Female', 'Male', 'Male', 'Male', 'Female']})

# print('df:\n', df)
# print('-'*10)
#
# print('df.describe:\n', df.describe())
# print('-'*10)
#
# print('column 1:\n', df['sex'])
# print('-'*10)
#
# print(df[:2]) # 选取前三列
# print('-'*10)
#
# print(df.iloc(0))

